package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.domain.Option;
import cc.eddic.practice.spring.domain.Question;
import cc.eddic.practice.spring.domain.QuestionType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionAddRequest {
    private int no;
    private String description;
    private QuestionType questionType;
    private List<Option> options;

    private Object image;

    public Question as(){return new Question(this.no,this.description,this.questionType,this.options);}
}
